Optimal. Leaf size=7 \[ \frac {\tanh ^{-1}(\sin (x))}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3175, 3770} \[ \frac {\tanh ^{-1}(\sin (x))}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 3770
Rubi steps
\begin {align*} \int \frac {\cos (x)}{a-a \sin ^2(x)} \, dx &=\frac {\int \sec (x) \, dx}{a}\\ &=\frac {\tanh ^{-1}(\sin (x))}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.00, size = 37, normalized size = 5.29 \[ \frac {\log \left (\sin \left (\frac {x}{2}\right )+\cos \left (\frac {x}{2}\right )\right )-\log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.42, size = 20, normalized size = 2.86 \[ \frac {\log \left (\sin \relax (x) + 1\right ) - \log \left (-\sin \relax (x) + 1\right )}{2 \, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.13, size = 23, normalized size = 3.29 \[ \frac {\log \left (\sin \relax (x) + 1\right )}{2 \, a} - \frac {\log \left (-\sin \relax (x) + 1\right )}{2 \, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 8, normalized size = 1.14 \[ \frac {\arctanh \left (\sin \relax (x )\right )}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.35, size = 21, normalized size = 3.00 \[ \frac {\log \left (\sin \relax (x) + 1\right )}{2 \, a} - \frac {\log \left (\sin \relax (x) - 1\right )}{2 \, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 13.60, size = 7, normalized size = 1.00 \[ \frac {\mathrm {atanh}\left (\sin \relax (x)\right )}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.29, size = 19, normalized size = 2.71 \[ - \frac {\log {\left (\sin {\relax (x )} - 1 \right )}}{2 a} + \frac {\log {\left (\sin {\relax (x )} + 1 \right )}}{2 a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________